Skip to content

Ready-made image designer#4

Merged
Daniel-Robotic merged 7 commits into
mainfrom
image_processing
May 16, 2025
Merged

Ready-made image designer#4
Daniel-Robotic merged 7 commits into
mainfrom
image_processing

Conversation

@Daniel-Robotic

Copy link
Copy Markdown
Owner

A fully ready-made image designer, it is possible to download as a picture in .png format, if further editing is needed, then in .drawio format.

images_path (Union[str, Path]): Path to the folder containing image files (PNG, JPG, JPEG).
border_size (Union[int, Tuple[int, int, int, int], None], optional):
Border size around each image. Can be:
- int: uniform border on all sides,
- tuple: (left, top, right, bottom),
- None: no border.
Defaults to 10.
border_fill (Union[str, Tuple[int, int, int]], optional):
Color of the border. Can be a string color name (e.g., "black") or an RGB tuple. Defaults to "black".
signature (bool, optional): Whether to add a label/numbering on each image. Defaults to True.
signature_label (Union[str, Tuple[str], LabelMode, None], optional):
Labeling mode. Can be:
- str: mode name ("latin_lower", "roman", etc.),
- tuple of strings: custom labels per image,
- LabelMode enum,
- None: no labels.
Defaults to "latin_lower".
signature_label_color (str, optional): Color of the label text. Defaults to "white".
signature_pos (SignaturePosition, optional): Position of the label on the image (top-left, bottom-right, etc.). Defaults to SignaturePosition.TOP_LEFT.
signature_size (Tuple[int, int], optional): Size of the label box (width, height). Defaults to (40, 40).
signature_color (str, optional): Background color of the label box. Defaults to "black".
signature_font_size (int, optional): Font size for labels annotations. Defaults to 24.
draw_axis (bool, optional): Whether to draw X and Y axes on each image. Defaults to False.
axis_labels (Union[Tuple[str, str], Tuple[Tuple[str], Tuple[str]]], optional):
Labels for X and Y axes. Can be:
- Tuple of two strings: global labels,
- Tuple of two tuples: per-image labels.
Defaults to ("X", "Y").
axis_offset (int, optional): Distance in pixels from the image edge to the axis origin. Defaults to 20.
axis_length (int, optional): Length of the drawn axes in pixels. Defaults to 60.
axis_font_size (int, optional): Font size for axis annotations. Defaults to 24.

@Daniel-Robotic Daniel-Robotic merged commit c20bb96 into main May 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant